Weibo debug log
Home85 Status detail didSelectRow doesn’t pop when clicking StatusLabel
- Other subviews in the cell is working.
- set all views containing statusLabel userInteractionEnabled = NO; no luck.
- -[HYStatusCell copyWithZone:] using Notification causing this. infoKey was set wrong
- added Notification.but causing unwanted segue to first cell in tableView.
Home78.6.background view show after scroll instead of at once.
Compose67. Recent Emotions doesn’t show.
- directory didn’t encode, deleting saved file, save again, worked.
Compose67. crash on selecting emotion
- encode to file crash if code is nil. judge before encode.
Compose65.Emoji doesn’t show in popView.
- title color set to clear color causing not showing
- font size causing not showing correctly
Exception on click emotionToolbarButton
- Terminating app due to uncaught exception ‘keyValuesArray is not a NSArray - keyValuesArray不是一个数组’, reason: ‘keyValuesArray is a (null) - keyValuesArray参数是一个(null)’
- plist path is wrong.
- create reference instead of create groups, worked. keep the folder in project blue!
Compose-60 EmotionIcons added causing crash.
Home-58 MJPhotoBrowser pageControl number error.
- page 2 doesn’t turn correctly in simulator, but it’s working in iPhone.
- 2019-02-22
1. id and secret
1.1. composeVC CZ
1 | // 拼接URL字符串 |
2. account key add isRealName
Using this class is not key value coding-compliant for the key isRealName.
1 | /** |
3.CZ New feature page control center fix
1 | control.center = CGPointMake(self.view.width * 0.5, self.view.height * 0.97); |
4.CZ tabbar lost items
- the default tabbar is not removed.
5.The app’s Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.
- Error:
- This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.
- Reason
- Code 27.6 (below) adding photo to Library needs discription to user
- Fix:
- add this key to plist
- Privacy Photo Libaray Addition Usage Discription
Our application needs permission to write photos…
1 | /** |
6.replace UIWebView with WKWebView (UIWebview is deprecated in iOS12! ) 2018-12-21 16:31:44
1 | // 1. import |
7. Auth went to redirect URL, the reason is redirect URL changed has a “/“ lost.
- This happened when testing on a real iPhone
- We should test on simulator first.
- if it works
- Then we doubt it’s a real iPhone issue!
8. new Xcode git can’t commit
- using old Xcode commit, said need configure name and email
- configured, can commit
- new Xcode can commit after reload.
9.Property ‘access_token’ cannot be found in forward class object ‘Account’
1 | //need import Account in ComposeVC too |
10.NSLocalizedDescription=Request failed: forbidden (403) sendWeibo, API changed.2018-12-23 23:34:17
1 | // set safe domain for app first then change this: |
11.account can’t be saved
- API changed!
- access_token, doesn’t return expires_time, so account is set to nil after
1 | +(HYAccount *)account |
12.application icon badge number not showing
1 | // 34.8 UIUserNotificationTypeBadge |
13.tabBar home clicked again, but not refreshing
- debug , found delegate method not called
- so it’s delegate not seted!!!!
14.-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:]: row (0) beyond bounds (0) for section (0).
- tableView is not showing at all! no section to scroll
- pull to refresh first
15.not scrolling to top if default postion is scrolled down
- default is set to do so
- we can set to scroll to top like this:
1 |
|
16.file not found, even the file is there
- remove the folder
- add the folder again
keyValuesArray is null
回滚
xcode new branch from commit
terminal
1 | git reset --hard |
gitee 设置默认分支
重新clone
Socket SO_ERROR [54: Connection reset by peer
断网了.
Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.’
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
17.sqlite error 20 由于count没设置。
2020-05-11 21:13:29
18.防止view滚出屏幕,不判断会出错
1 | ### // 99.19.防止view滚出屏幕,textView添加在屏幕外 |
19.Collection <__NSArrayM: 0x600000d2bfc0> was mutated while being enumerated.
20.记事没保存
新建没保存